package demo02;
class Student11{
    private String name;
    private int age;
    public Student11(){
        System.out.println("实例化了一个新的student对象");
    }
    public Student11 (String name,int age){
        this();
        this.name = name;
    }
    public String read(){
        return "我是："+ name +",年龄："+age;
    }
}

public class Example11 {
    public static void main(String[] args) {
        Student11 stu = new Student11("张三",18);
        System.out.println(stu.read());
    }
}